package com.qk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qk.entity.OperateLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface OperateLogMapper extends BaseMapper<OperateLog> {
    @Select("select ol.*,u.name  operate_user_name from operate_log ol left join user u on ol.operate_user_id = u.id order by ol.operate_time")
    Page<OperateLog> listLogs(Page<OperateLog> operateLogPage, OperateLog operateLog);
}
